package cn.dinghu.pro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author xibao
 * @since 2025-10-15
 */
@Getter
@Setter
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 护工ID
     */
    @TableField("nurse_id")
    private Long nurseId;

    /**
     * 订单状态:1-待接单,2-已接单,3-服务中,4-已完成,5-已取消
     */
    private Integer orderStatus;

    /**
     * 标题
     */
    private String title;

    /**
     * 类别
     */
    private Integer category;

    /**
     * 服务类型
     */
    private String serviceType;

    /**
     * 指定性别:0-不限,1-男,2-女
     */
    private Integer requiredGender;

    /**
     * 开始日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 结束日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 陪护地点
     */
    private String careLocation;

    /**
     * 地址
     */
    private String address;

    /**
     * 陪护时间
     */

    private String careTime;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 简介
     */
    private String description;

    /**
     * 价格
     */
    private Integer price;



    private String nurseName;

    private String userName;

    private Integer pj;

    public Integer getPj() {
        return pj;
    }

    public void setPj(Integer pj) {
        this.pj = pj;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNurseName() {
        return nurseName;
    }

    public void setNurseName(String nurseName) {
        this.nurseName = nurseName;
    }
}
